home *** CD-ROM | disk | FTP | other *** search
/ Adobe Digital Video Collection / Digital Video Collection CD.iso / After Effects 5.5 / MMScriptEng.Cab / F115574_cmpaud.mm < prev    next >
Encoding:
Text File  |  2001-12-07  |  774 b   |  16 lines

  1. // Comp Audio Version 1.2
  2.  
  3. // This Program Sets the value of the first set of popups
  4. // to the audio level of the comp, scaled to lie within the range [min, max]
  5.  
  6. //      LAYER                                               PROPERTY                     CHANNEL
  7. //      ------                                              ----------                     --------
  8. // 1: Layer to copy audio amplitude into      property to vary           channel of property
  9. // 2: doesn't matter                                   doesn't matter               doesn't matter
  10.  
  11. max = 1000;        // change this to the maximum value
  12. min = 50;                 // change this to the minimum value
  13.  
  14. value(pop_layer(1), pop_property(1)) [pop_channel(1)] = 
  15.      min + comp_audio_amplitude() * (max - min);
  16.